package com.twu.biblioteca.ui.components;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by madhu on 27/4/14.
 */
public class Menu {

    private List<MenuItem> menuItems;

    public Menu() {
        menuItems = new ArrayList<MenuItem>();
    }

    public List<MenuItem> getAllMenuItems() {
        return menuItems;
    }

    public void addMenuItem(MenuItem menuItem) {
        menuItems.add(menuItem);
    }

    public void deleteMenuItem(MenuItem menuItem) {
        menuItems.remove(menuItem);
    }

    public int size() {
        return menuItems.size();
    }
}
